Skip to content

build: add nix flake to build with nix package manager#180

Open
metaspace wants to merge 1 commit into
westerndigitalcorporation:masterfrom
metaspace:add-nix-flake
Open

build: add nix flake to build with nix package manager#180
metaspace wants to merge 1 commit into
westerndigitalcorporation:masterfrom
metaspace:add-nix-flake

Conversation

@metaspace

Copy link
Copy Markdown

Add a nix flake to enable builds with the nix package manager. Also update readme with instructions.

Change shebang in cert/setup_certs.sh, because we don't all keep bash in the same place.

Add a nix flake to enable builds with the nix package manager. Also update
readme with instructions.

Change shebang in `cert/setup_certs.sh`, because we don't all keep bash in the
same place.

Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
@twilfredo

Copy link
Copy Markdown
Collaborator

@metaspace This is cool! Thanks for the patch. I am not familiar enough with Nix to review this, but happy to get this in so more people can use spdm-utils easily. @alistair23 thoughts?

@metaspace

Copy link
Copy Markdown
Author

You are welcome! It is really neat for all the nix people if you provide a flake.

I won't be able to maintain this flake, so consider this before taking the patch. However, it is really simple to add the build to your CI, just run nix build in the directory of the flake. Then you would get a warning if it breaks.

@alistair23

Copy link
Copy Markdown
Collaborator

We at least need this built and checked as part of the CI, otherwise it's just going to bit rot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants